package com.ohs.utils;

import org.springframework.util.DigestUtils;

public class getMD5PwdUtil {

    public static String getMD5Pwd(String password, String salt){
        String md5Pwd = password+salt;
        for (int i=0; i<10; i++){
            md5Pwd = DigestUtils.md5DigestAsHex(md5Pwd.getBytes());
        }
        return md5Pwd;
    }
}
